<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>获取布局视口</title>
	</head>
	<body>
		<script type="text/javascript" >
			console.log('该设备的布局视口宽度为：',document.documentElement.clientWidth)
		</script>
	</body>
</html>